<?php 
$section = 'user';
$link = 'group/form/';
?>
<div class="panel-admin">
    <h1><?php if ($model->id) { echo Yii::t('group','_LB_EDIT_GROUP');} else {echo Yii::t('group','_LB_ADD_GROUP');}?></h1>
    <div class="form-admin">
        <?php $form=$this->beginWidget('CActiveForm', array(
            'id'=>'group_form',
            'enableClientValidation'=>true,
            'clientOptions'=>array(
                'validateOnSubmit'=>true,
            ),
        )); ?>
            <table>
                <tr>
                    <td><?php echo $form->labelEx($model,'name'); ?></td>
                    <td>
                        <?php echo $form->textField($model,'name', array('class'=>'textbox-admin')); ?>
                        <?php echo $form->error($model,'name', array('class'=>'error')); ?>
                    </td>
                </tr>
                <tr>
                    <td><?php echo $form->labelEx($model,'description'); ?></td>
                    <td>
                        <?php echo $form->textArea($model,'description', array('class'=>'textbox-admin')); ?>
                        <?php echo $form->error($model,'description', array('class'=>'error')); ?>
                    </td>
                </tr>
                <tr>
                    <td>&nbsp;</td>
                    <td>
                        <?php echo CHtml::submitButton(Yii::t('common','_LB_SAVE'), array("class"=>"button-admin")); ?></td>
                </tr>
            </table>
        <?php $this->endWidget(); ?>
    </div>
</div>